﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace YiMeiJiaService.Assembly
{
    /// <summary>
    /// 验证类
    /// </summary>
    public static class _Verify
    {
        public static bool IsPhoneNumber(string number)
        {
            // 使用正则表达式匹配手机号码的规则
            string pattern = @"^1[3456789]\d{9}$";
            Regex regex = new Regex(pattern);

            // 判断输入的内容是否匹配手机号码的规则
            bool isMatch = regex.IsMatch(number);

            return isMatch;
        }
    }
}
